/*
 * Copyright 2003-2007 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

package com.colony;

import java.io.IOException;

import com.argot.TypeException;
import com.argot.TypeLibrary;

import com.argot.remote.MetaLocation;
import com.argot.remote.MetaObject;

import com.colony.remote.RemoteException;

public interface IColonyClient
{
	public IContainer getHostContainer();

    public TypeLibrary getTypeLibrary();
    
	public Object getFront( MetaLocation location )
	throws ColonyException, RemoteException, TypeException;

	public Object getFront( MetaObject location )
	throws ColonyException, RemoteException, TypeException;
	
    public IProxyFactory getFactory( Class clss )
    throws ColonyException, TypeException;
    
    public void setFactory( Class clss, IProxyFactory factory );

    public void bind( String hostName, ColonyEnvironment environment ) 
    throws ColonyException, RemoteException, TypeException, IOException;
    
    public boolean isBound();
}
